﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BoardPACUtil.Util
{
    /// <summary>
    ///  <title></title>
    ///  <description></description>
    ///  <copyRight>Copyright (c) 2013</copyRight>
    ///  <company>IronOne Technologies (Pvt)Ltd</company>
    ///  <createdOn>2013-</createdOn>
    ///  <author></author>
    ///  <modification>
    ///     <modifiedBy></modifiedBy>
    ///      <modifiedDate></modifiedDate>
    ///     <description></description>
    ///  </modification>
    /// </summary>
    public class GenServiceException:Exception
    {
        /// <summary>
        /// 
        /// </summary>
        private string _code;

        /// <summary>
        /// 
        /// </summary>
        /// <param name="code"></param>
        public GenServiceException(string code)
            : base()
        {
            this._code = code;
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="code"></param>
        /// <param name="msg"></param>
        public GenServiceException(string code, string msg)
            : base(msg)
        {
            this._code = code;
        }

        /// <summary>
        /// 
        /// </summary>
        public string Code { get { return this._code; } set { this._code = value; } }

    }

    /// <summary>
    /// 
    /// </summary>
    public enum EventStatus
    {
        Entry = 0,
        Success,
        Debug,
        FileUploaded,
        Failure
    }
}
